<template>
  <div
    class="flow-editor-node end"
    :class="{'history-approved-node': isCurrentNode}"
  >
    <div class="flow-editor-node-container">
      <div class="node-title">
        <div class="node-title-name">{{LANG.END}}</div>
      </div>
      <div class="node-content node-content-placeholder">
        <div class="node-detail">
          <div class="node-detail-item">{{LANG.END_NODE}}</div>
        </div>
        <i class="iconfont-approval-admin icon-arrow"></i>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'endNode',
  props: {
    nodeConfig: {
      type: Object,
      default: () => {
        return {}
      }
    },
    node_index: {
      type: Number,
      default: 0
    }
  },
  computed: {
    isCurrentNode() {
      if (this.$attrs.diagramMode) {
        return this.$attrs.flowInfo.endEvent == this.nodeConfig.id
      } else {
        return false
      }
    }
  }
}
</script>

<style lang="scss">
</style>